package com.carrot.gateway.property;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * 自定义配置
 * @author 刘红真
 */
@Data
@EqualsAndHashCode(callSuper = false)
//@RefreshScope
@Configuration
@ConfigurationProperties(prefix = CustomSecurityProperties.CUSTOM_SECURITY_PREFIX)
public class CustomSecurityProperties {

    static final String CUSTOM_SECURITY_PREFIX = "custom.security";

    /**
     * 白名单
     */
    private List<String> ignoreUriList;

    /**
     * ip黑名单
     */
    private List<String> blackIpList;

}
